<?php

define('APPLICATION_PATH', 
              realpath(dirname(__FILE__) . '/application')); 
define('APPLICATION_ENV','production'); 
set_include_path(APPLICATION_PATH . '/../library'); 
require_once 'Zend/Application.php' ;
$application = new Zend_Application( 
    APPLICATION_ENV, 
    APPLICATION_PATH . '/configs/application.ini' 
); 

define('PUBLIC_PATH', 
              realpath(dirname(__FILE__) . '/public')); 
define('TEMPLATES_PATH', PUBLIC_PATH.'/templates');
$config = new Zend_Config_Ini(
        APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV);
		
$baseUrl = $config->baseHttp;
$basePath = $config->basePath;
define('_BASE_URL', $baseUrl);
define('_BASE_PATH', $basePath);
define('TEMPLATES_URL', $baseUrl.'public/templates');
define('PUBLIC_URL', $baseUrl.'public');

$application->bootstrap()->run(); 